package com.object;

public class Student {
    //定义成员变量
    private String name;
    private int age;

    public void setName(String name){
        this.name = name;
    }

    public String getName() {

        return name;
    }

    public void setAge(int age) {

        this.age = age;
    }

    public int getAge() {

        return age;
    }

    public void showStudent(){

        System.out.println("{name:"+name+",age:"+age+"}");
    }
}
